package org.lb.MarketingSystem.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.lb.MarketingSystem.entity.CustomerUser;

public interface CustomerUserService {
	//客户
	public List<CustomerUser> get_AllCustomerUsers();    //得到所有客户信息
	public boolean updateCustomerUser(CustomerUser customerUser); //修改客户信息
	public boolean addCustomerUser(CustomerUser customerUser);   //添加客户
	public boolean deleteCustomerUser(Integer customerUserId);  //删除客户
	public CustomerUser getCustomerUserByName(@Param("account") String account,
			@Param("password") String password);  //根据账号密码得到客户信息
	public CustomerUser getCustomerUserById(Integer customerUserId); //根据用户Id得到用户信息
	public List<CustomerUser>  getCustomerUsersByName(@Param("name")String name,@Param("pagenum")Integer pagenum,@Param("number")Integer number);  //根据客户名得到number条数据
	public CustomerUser  getCustomerUserByAcc(String account); //根据客户账号查询信息	
	public List<CustomerUser> getCustomeruserByPage(@Param("pagenum")Integer pagenum,@Param("number")Integer number); //根据页数得到number条数据
	public CustomerUser getCustomerUserByAccAndName(@Param("account") String account,@Param("name")String name);  //根据账号，姓名得到用户信息
	public Integer getCounts();  //得到客户所有条数
	
	
	public CustomerUser getConstomerUserByName(Map<String, Object> map);  //根据客户名得到客户信息

	public CustomerUser getCustomerUserByName(String name);
}
